import request from '@/utils/request'

// 查询出境申请列表
export function listExitApplications(query) {
  return request({
    url: '/system/exitApplications/list',
    method: 'get',
    params: query
  })
}

// 查询出境申请详细
export function getExitApplications(id) {
  return request({
    url: '/system/exitApplications/' + id,
    method: 'get'
  })
}

// 新增出境申请
export function addExitApplications(data) {
  return request({
    url: '/system/exitApplications',
    method: 'post',
    data: data
  })
}

// 修改出境申请
export function updateExitApplications(data) {
  return request({
    url: '/system/exitApplications',
    method: 'put',
    data: data
  })
}

// 删除出境申请
export function delExitApplications(id) {
  return request({
    url: '/system/exitApplications/' + id,
    method: 'delete'
  })
}
